package visual;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.Vector;

import main.GameDef;

public class Player implements GameDef{
	
	public int id;
	public String name;
	public Vector<Piece> castle;
	public Rectangle area;
	
	public Player(int playerId, String playerName){
		name = playerName;
		id = playerId;
	}
	
	public void paint(Graphics g){
		g.setColor(new Color(0xFF00FF));
		g.fillRect(area.x, area.y, area.width, area.height);
		for(int i = 0; i < castle.size(); i++){
			castle.get(i).paint(g);
		}
	}
	
	public void setCastlePosition(Point pos){
		area = new Rectangle(pos.x, pos.y, BLOCK_WIDTH * 10, BLOCK_HEIGHT * 10);
	}
	
}
